<%@ page import="apralms.ProjectIndex" %>



<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="projectIndex.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="10" required="" value="${projectIndexInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="projectIndex.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="50" required="" value="${projectIndexInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'scheme', 'error')} required">
	<label for="scheme">
		<g:message code="projectIndex.scheme.label" default="Scheme" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="scheme" name="scheme.id" from="${apralms.Scheme.list()}" optionKey="id" required="" value="${projectIndexInstance?.scheme?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'project', 'error')} required">
	<label for="project">
		<g:message code="projectIndex.project.label" default="Project" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="project" name="project.id" from="${apralms.Project.list()}" optionKey="id" required="" value="${projectIndexInstance?.project?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'parameter', 'error')} required">
	<label for="parameter">
		<g:message code="projectIndex.parameter.label" default="Parameter" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="parameter" name="parameter.id" from="${apralms.Parameter.list()}" optionKey="id" required="" value="${projectIndexInstance?.parameter?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'known', 'error')} ">
	<label for="known">
		<g:message code="projectIndex.known.label" default="Known" />
		
	</label>
	<g:checkBox name="known" value="${projectIndexInstance?.known}" />
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'targetValue', 'error')} required">
	<label for="targetValue">
		<g:message code="projectIndex.targetValue.label" default="Target Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="targetValue" step="any" min="0.0" max="100000.0" required="" value="${projectIndexInstance?.targetValue}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'limitValue', 'error')} required">
	<label for="limitValue">
		<g:message code="projectIndex.limitValue.label" default="Limit Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="limitValue" step="any" min="0.0" max="100000.0" required="" value="${projectIndexInstance?.limitValue}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'spareValue', 'error')} required">
	<label for="spareValue">
		<g:message code="projectIndex.spareValue.label" default="Spare Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="spareValue" step="any" min="0.0" max="1.0" required="" value="${projectIndexInstance.spareValue}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'readyTarget', 'error')} required">
	<label for="readyTarget">
		<g:message code="projectIndex.readyTarget.label" default="Ready Target Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="readyTarget" step="any" min="0.0" max="100000.0" required="" value="${projectIndexInstance?.readyTarget}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectIndexInstance, field: 'readyLimit', 'error')} required">
	<label for="readyLimit">
		<g:message code="projectIndex.readyLimit.label" default="Ready Limit Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="readyLimit" step="any" min="0.0" max="100000.0" required="" value="${projectIndexInstance?.readyLimit}"/>
</div>
